<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">       
	<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
	<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <title>Eliminar Gasto</title>
    </head>
    <body class="container">
        <div class="form-horizontal">
            <div class="form-group"> 
                <label class="col-md-2 control-label">Folio</label>
                <p class="form-control-static">${gasto.codGasto}</p>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">Nombre Usuario</label> 
                <p class="form-control-static">${gasto.nombreUsu}</p>
            </div>
            <div class="form-group">               
                <label class="col-md-2 control-label">Fecha</label>
                <p class="form-control-static">${gasto.fecha}</p>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">Descripción</label>
                <p class="form-control-static">${gasto.descripcion}</p> 
            </div>
            <form class="form-horizontal" METHOD = "POST" ACTION = "<c:url value="/EliminarGasto"/>">
                <INPUT TYPE = "hidden" NAME = "COD_GASTO" value="${gasto.codGasto}" required />
            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <button type="submit" class="btn btn-danger">Eliminar</button>
                    <button id="cerrar" class="btn btn-success">Cerrar</button>
                </div>
            </div>
        </div>    
                <script>
                    $('#cerrar').click(function(){
                       window.close() 
                    });
                </script>   
    </body>
</html>